package bookpos.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import bookpos.dao.UserRoleDao;
import bookpos.entity.UserRole;
import bookpos.service.UserRoleService;
/**
 * 支付业务实现类
 * @author WZB
 *
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {
	@Autowired
	private UserRoleDao dao;

	public void save(UserRole vo) {
		dao.save(vo);
		
	}
	public void update(UserRole vo) {
		dao.update(vo);
		
	}
	public void delete(int id) {
		UserRole vo = dao.get(id);
		dao.delete(vo);
	}

	public List<UserRole> findAll(int page, int rows, String sort, String order) {
		return dao.findAll(page, rows, sort, order);
	}

	public int getTotal() {
		return dao.countAll();
	}

}
